﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BGSpaceShooterServer
{
    public delegate void LogEventHandler(object obj, LogEventArgs logEventArgs);

    static internal class Logger
    {
        public static event LogEventHandler LogMessageAppeared;

        public static void Log(object sender, string logMesssage)
        {
            if (LogMessageAppeared != null)
            {
                LogMessageAppeared.Invoke(sender, new LogEventArgs(logMesssage));
            }
        }
    }
}
